/*package com.utils.spring.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import com.kyhd.audio.util.AppConfig;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@ComponentScan(basePackages = { "com.kyhd.storm.service"})
@Configuration
public class OSSConfig {

	public static AppConfig appConfig;
	
	//小说音频
	@Value("${oss.endpoint}")
	String endPoint;
	
	@Value("${oss.accessKeyId}")
	String accessKeyId;
	
	@Value("${oss.accessKeySecret}")
	String accessKeySecret;
	
	@Value("${oss.bucketName}")
	String bucketName;
	
	@Value("${oss.audio.prefix}")
	String filePrefix;
	
	//小说ids
	@Value("${audio.novel.ids}")
	String ids;
	
	@Value("${audio.novel.defaultnum}")
	String defaultNovelNum;
	
	//百度语音
	@Value("${baidu.speech.appid}")
	String baiduAppid;	
	
	@Value("${baidu.speech.apikey}")
	String baiduApikey;	
	
	@Value("${baidu.speech.secretkey}")
	String baiduSecretkey;
	
	@Value("${baidu.speech.spd}")//语速
	String baiduSpd;
	
	@Value("${baidu.speech.pit}")//语调
	String baiduPit;
	
	@Value("${baidu.speech.per}")//发音人声
	String baiduPer;	
	
	@Bean(name="appConfig")
	public AppConfig getAppConfig(){
		AppConfig config = new AppConfig();
		config.setAccessKeyId(accessKeyId);
		config.setAccessKeySecret(accessKeySecret);
		config.setBucketName(bucketName);
		config.setEndPoint(endPoint);
		config.setFilePrefix(filePrefix);
		
		config.setIds(ids);
		config.setDefaultNovelNum(defaultNovelNum);
		
		config.setBaiduApikey(baiduApikey);
		config.setBaiduAppid(baiduAppid);
		config.setBaiduSecretkey(baiduSecretkey);
		config.setBaiduPer(baiduPer);
		config.setBaiduPit(baiduPit);
		config.setBaiduSpd(baiduSpd);
		log.info("appConfig:"+config.toString());
		this.appConfig = config;
		return config;
	}
	
}
*/